package com.mashibing.tomcat;

import java.util.HashMap;
import java.util.Map;

/**
 * @Auther: dy
 * @Date: 2022/1/1 - 01 - 01 - 1:08
 * @Description: com.mashibing.tomcat
 * @version: 1.0
 */
public class MyMapping {
    public static Map<String,String> map = new HashMap<>();

    static{
        //key = 客户端请求地址URL  value = Servlet applet程序的全限定路径
        //Server利用反射获取对应的Servlet applet
        map.put("/mytomcat","com.mashibing.tomcat.MyServlet");
    }

    /**获取map*/
    public Map<String,String> getMap(){
        return map;
    }
}
